﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using OurFAS.MySystem;

namespace OurFAS
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            SplashScreen.Instance.Font = new System.Drawing.Font("宋体", 11.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));

            SplashScreen.SetBackgroundImage(OurFAS.Properties.Resources.splash);
            SplashScreen.SetTitleString("Please wait...");
            FrmLogin loginForm = new FrmLogin();

            if (loginForm.ShowDialog() == DialogResult.OK)
            {
                Application.Run(new FrmMain());
            }
        }
    }
}
